package aufgabe3;

/**
 * @author Johannes Riedmann
 * @author David Medenjak
 * @author Lukas Koell
 */
abstract public class RegularPolygon implements ScaleablePolygon{

    protected float length;

    /**
     * Constructor
     */
    protected RegularPolygon(){
       
    }
    
    /**
     * @param length > 0.00
     */
    public RegularPolygon(float length){
        this.length = length;
    }
    
    /**
     * sets side length for all edges
     * @param length > 0.00
     */
    public void set(float length){
        this.length = length;
    }
    
    /**
     * multiplies length of all edges to scale (resize) the object
     * @param factor > 0.00
     */
    public void scale(float factor){
        this.length *= factor;
    }
}
